// 房屋隐患管理
import type { AppRouteModule } from '/@/router/types';

import { LAYOUT } from '/@/router/constant';
import { t } from '/@/hooks/web/useI18n';

const charts: AppRouteModule = {
  path: '/houseYhManager',
  name: 'HouseYhManager',
  component: LAYOUT,
  redirect: '/houseYhManager/houseManager',
  meta: {
    orderNo: 212,
    icon: 'ion:bar-chart-outline',
    title: t('routes.demo.houseyhmanager.root'),
    roles: ['Admin', 'City', 'Area', 'Street', 'Community', 'Investigator'],
    userGroups: ['FireControl'],
    hideChildrenInMenu: true,
  },
  children: [
    {
      path: 'houseManager',
      name: 'houseManager',
      meta: {
        title: t('routes.demo.houseyhmanager.root'),
        hideChildrenInMenu: true,
        roles: ['Admin', 'City', 'Area', 'Street', 'Community'],
        userGroups: ['FireControl'],
      },
      component: () => import('/@/views/danger/fire/FireTable.vue'),
      children: [
        {
          path: 'detail/:id',
          name: 'hourselog',
          component: () => import('/@/views/danger/fire/detail.vue'),
          meta: {
            currentActiveMenu: '/houseManager/housePlaceManager',
            title: t('routes.demo.dangerInvestigate.fireDetail'),
            hideMenu: true,
            dynamicLevel: 3,
            realPath: '/danger/fire/detail',
            roles: ['Admin', 'City', 'Area', 'Street', 'Community', 'Investigator'],
            userGroups: ['FireControl'],
          },
        },
      ],
    },
    {
      path: 'hourselog',
      name: 'hourselog',
      meta: {
        title: '房屋管理',
        hideChildrenInMenu: true,
        roles: ['Admin', 'City', 'Area', 'Street', 'Community'],
        userGroups: ['FireControl'],
      },
      component: () => import('/@/views/utils/houseCheckLog.vue'),
    },
  ],
};

export default charts;
